package com.han.hotelplat.pojo.systemuser;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.han.hotelplat.comm.base.BasePo;

/**
 * Systemuser entity. @author MyEclipse Persistence Tools
 */

public class Systemuser extends BasePo {

	// Fields

	private Integer id;
	private String userid;
	private String username;
	private String password;
	private String realname;
	private Integer sex;
	private String department;
	private String position;
	private String tel;
	private String email;
	private String qq;
	private String wx;
	private Integer state;
	private Date creattime;
	private Date lastlogintime;
	private String vocation;
	private Integer bindAllHotel;//是否绑定所有酒店
	
	// Constructors
	private String rolename;
	// Constructors
	private Integer roleid;
	
	 //拥有的角色
    private List<Role> roles = new ArrayList<Role>();
    //拥有能访问的资源
    private List<Resource> resources = new ArrayList<Resource>();
	
	/** default constructor */
	public Systemuser() {
	}

	/** minimal constructor */
	public Systemuser(String username, String password) {
		this.username = username;
		this.password = password;
	}

	/** full constructor */
	public Systemuser(Integer id, String userid, String username, String password,
			String realname, Integer sex, String department, String position,
			String tel, String email, String qq, String wx, Integer state,
			Timestamp creattime, Timestamp lastlogintime, String vocation, Integer bindAllHotel) {
		this.id = id;
		this.userid = userid;
		this.username = username;
		this.password = password;
		this.realname = realname;
		this.sex = sex;
		this.department = department;
		this.position = position;
		this.tel = tel;
		this.email = email;
		this.qq = qq;
		this.wx = wx;
		this.state = state;
		this.creattime = creattime;
		this.lastlogintime = lastlogintime;
		this.vocation = vocation;
		this.bindAllHotel = bindAllHotel;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWx() {
		return this.wx;
	}

	public void setWx(String wx) {
		this.wx = wx;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreattime() {
		return this.creattime;
	}

	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}

	public Date getLastlogintime() {
		return this.lastlogintime;
	}

	public void setLastlogintime(Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}
	
	public String getVocation() {
		return vocation;
	}

	public void setVocation(String vocation) {
		this.vocation = vocation;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	public List<Resource> getResources() {
		return resources;
	}

	public void setResources(List<Resource> resources) {
		this.resources = resources;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public Integer getRoleid() {
		return roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public Integer getBindAllHotel() {
		return bindAllHotel;
	}

	public void setBindAllHotel(Integer bindAllHotel) {
		this.bindAllHotel = bindAllHotel;
	}
	
}
